﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="AnyOffice.general.system.mytable.index" %>
<%@ Reference Page="~/general/index.aspx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>管理模块</title>		
		
	</HEAD>
	<body class="bodycolor" topmargin="5">
		<form id="Form1" method="post" runat="server">
			<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
				<tr>
					<td class="Big"><img src="/images/menu/mytable2.gif" align="absmiddle"><span class="big3">
							桌面模块设置</span>
					</td>
				</tr>
			</table>
			<br>
			<asp:Repeater id="rptMytable" runat="server">
			<HeaderTemplate>
					<table border="0" cellspacing="1" width="450" class="small" bgcolor="#000000" cellpadding="3"
						align="center">
						<TR class="TableHeader">
							<td nowrap align="center">模块名称</td>
							<td nowrap align="center">默认位置</td>
							<td nowrap align="center">序号</td>							
							<td nowrap align="center">显示属性</td>
							<td nowrap align="center">操作</td>
						</TR>
				</HeaderTemplate>
				<ItemTemplate>
					<tr class="TableLine1">
						<td nowrap align="center"><%#Eval("ViewType").ToString() == "3" ? "<font color=gray>" + Eval("ModuleName").ToString() + "</font>" : Eval("ModuleName").ToString()%></td>
						<td nowrap align="center"><%#Eval("ModulePos").ToString() == "l" ? "左侧" : "右侧"%></td>
						<td nowrap align="center"><%#Eval("ModuleNo")%></td>						
						<td nowrap align="center">
							<%#Eval("ViewType").ToString() == "1" ? "用户可选" : ""%>
							<%#Eval("ViewType").ToString() == "2" ? "用户必选" : ""%>
							<%#Eval("ViewType").ToString() == "3" ? "<font color=gray>暂停显示</font>" : ""%>
						</td>
						<td nowrap align="center">
							<a href="mytable_edit.aspx?module_id=<%#Eval("ModuleId")%>">编辑</a>
						</td>
					</tr>
				</ItemTemplate>
				<AlternatingItemTemplate>
					<tr class="TableLine2">
						<td nowrap align="center"><%#Eval("ViewType").ToString() == "3" ? "<font color=gray>" + Eval("ModuleName").ToString() + "</font>" : Eval("ModuleName").ToString()%></td>
						<td nowrap align="center"><%#Eval("ModulePos").ToString() == "l" ? "左侧" : "右侧"%></td>
						<td nowrap align="center"><%#Eval("ModuleNo")%></td>						
						<td nowrap align="center">
							<%#Eval("ViewType").ToString() == "1" ? "用户可选" : ""%>
							<%#Eval("ViewType").ToString() == "2" ? "用户必选" : ""%>
							<%#Eval("ViewType").ToString() == "3" ? "<font color=gray>暂停显示</font>" : ""%>
						</td>
						<td nowrap align="center">
							<a href="mytable_edit.aspx?module_id=<%#Eval("ModuleId")%>">编辑</a>
						</td>
					</tr>
				</AlternatingItemTemplate>
				<FooterTemplate>
					</table>
				</FooterTemplate>
			</asp:Repeater>
			<asp:Literal id="litMessage" runat="server"></asp:Literal>
		</form>
	</body>
</HTML>
